#ifndef KEYLED_H_
#define KEYLED_H_

#include "lpc_types.h"
#include "lpc17xx_gpio.h"
#include "lpc17xx_pinsel.h"

#define	CLR_595SHCLK		GPIO_ClearValue(PINSEL_PORT_1, (1<<PINSEL_PIN_29));  //SHCLK
#define	SET_595SHCLK		GPIO_SetValue(PINSEL_PORT_1, (1<<PINSEL_PIN_29));

#define	CLR_595STCLK		GPIO_ClearValue(PINSEL_PORT_0, (1<<PINSEL_PIN_0));  //STCLK
#define	SET_595STCLK		GPIO_SetValue(PINSEL_PORT_0, (1<<PINSEL_PIN_0));

#define	CLR_595SI		GPIO_ClearValue(PINSEL_PORT_1, (1<<PINSEL_PIN_28));   //SI
#define	SET_595SI		GPIO_SetValue(PINSEL_PORT_1, (1<<PINSEL_PIN_28));

#define	close_amled			GPIO_SetValue(PINSEL_PORT_0, (1<<PINSEL_PIN_29));     //LOCK
#define	open_amled			GPIO_ClearValue(PINSEL_PORT_0, (1<<PINSEL_PIN_29));  

#define	close_takeled		GPIO_SetValue(PINSEL_PORT_0, (1<<PINSEL_PIN_30));     //TAKE
#define	open_takeled		GPIO_ClearValue(PINSEL_PORT_0, (1<<PINSEL_PIN_30));


uint32_t	LedDisDataAllocation(uint8_t PstChan,uint8_t PgmChan);

void		DriveLed(uint32_t LedValue);
void 		LedDis(void);

#endif
//=====================================================
